package com.design.pattern.structuremode.decorator.example;

public class ManPersonHatDecorator extends ManPersonDecorator{
    @Override
    public void wear() {
        super.wear();
        wearHat();
    }
    private void wearHat(){
        System.out.println("戴帽子！");
    }
}
